from django.shortcuts import render
from rest_framework import viewsets
from rest_framework import permissions
from certificate_manager.models import *
from certificate_manager.serializers import *
from rest_framework.decorators import api_view
from rest_framework.response import Response

class DepartmentViewSet(viewsets.ModelViewSet):
	queryset = Department.objects.all()
	serializer_class = DepartmentSerializer
	permission_classes = [permissions.IsAdminUser]

